<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
		<meta name="renderer" content="webkit">
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title>恒达汽修有限公司</title>

		<link rel="stylesheet" type="text/css" href="css/meteinfo_ui.css" id="metuimodule" data-module="1" />
		<link rel="stylesheet" type="text/css" href="css/metinfo.css" />
		<script src="js/jQuery1.7.2.js" type="text/javascript"></script>
		<script src="js/metinfo_ui.js" type="text/javascript"></script>
		<script src="js/ch.js" type="text/javascript"></script>
		<style type="text/css">
			html,
			body {
				margin: 0;
				padding: 0;
			}
			
			.iw_poi_title {
				color: #CC5522;
				font-size: 14px;
				font-weight: bold;
				overflow: hidden;
				padding-right: 13px;
				white-space: nowrap
			}
			
			.iw_poi_content {
				font: 12px arial, sans-serif;
				overflow: visible;
				padding-top: 4px;
				white-space: -moz-pre-wrap;
				word-wrap: break-word
			}
		</style>
		<!--[if IE]>
		<script src="public/js/html5.js" type="text/javascript"></script>
		<![endif]-->
	</head>

	<body>
		<div class="m-nav">
			<nav class="inner">
				<ul class="list-none">
					<li id="nav_10001" style='width:123px;'><a href='index.jsp' title='网站首页' class='nav'><span>网站首页</span></a></li>
					<li id='nav_1' style='width:123px;' class='navdown'><a href='about.jsp' 0 title='关于我们' class='hover-none nav'><span>关于我们</span></a></li>
					<li id='nav_2' style='width:123px;'><a href='selectTitleZ' title='信息中心' class='hover-none nav'><span>信息中心</span></a></li>
					<li id='nav_3' style='width:123px;'><a href='${pageContext.request.contextPath }/receptionSelectStock' title='恒达汽修产品' class='hover-none nav'><span>恒达汽修产品</span></a></li>
					<li id='nav_4' style='width:122px;'><a href='cases.jsp' title='服务车型' class='hover-none nav'><span>服务车型</span></a></li>
					<li id='nav_34' style='width:122px;'><a href='findQtRecruit' title='在线招聘' class='hover-none nav'><span>在线招聘</span></a></li>
					<li id='nav_11' style='width:122px;'><a href='booking.jsp' title='在线预约' class='hover-none nav'><span>在线预约</span></a></li>
					<li id='nav_18' style='width:122px;'><a href='${pageContext.request.contextPath }/selectNo' title='联系我们' class='hover-none nav'><span>联系我们</span></a></li>
				</ul>
			</nav>
		</div>

		

		<header>
			<div class="inner top">

				<a href="../" title="汽配公司" id="web_logo">
					<img src="img/1363847903.png" style="width: 210px; height: 55px;" alt="汽配公司" title="汽配公司" style="margin:0px 0px 0px 10px;" />
				</a>

				<div class="top-seo">
					<div class="tpseotxt">
						<p>
							&nbsp;020-5856-1762</p>
					</div>
				</div>
			</div>
		</header>

		<div class="inner met_flash">
			<div class="flash">
				<img src='img/1363850250.jpg' width='980' alt='' height='300'></div>
		</div>

		<div class="sidebar inner">
			

			<div class="sb_nav">

				<h3 class='title line'>联系方式</h3>
				<div class="active editor b-r">
					<div>联系人：罗凤梅</div>
					<div>手机：13529095605</div>
					<div>Q Q：1054461703</div>
					<div class="clear"></div>
				</div>

			</div>

			<div class='sb_box b-r'>
				<h3 class="title">
			<div class="position">当前位置：<a href="../" title="网站首页">网站首页</a> &gt; <a href=../Logistics/ >在线招聘</a></div>
			<span>在线招聘</span>
		</h3>
				<div class="clear"></div>

				<form id="frmAddCandidateInfo" method='POST' onSubmit='return Checkcv();' name='myform' action='${pageContext.request.contextPath }/addApply' target='_self'>
						<input type='hidden' name='lang' value='cn' />
						<table class='cv_table'>
							<tr>
								<td class='text'>应聘职位</td>
								<td class='input'>
								<select name='posit.positId'>
								<s:iterator value="#request.rec.list">
									<option value='${posit.positId}' >${posit.positName}</option>
								</s:iterator>
								</select>
								</td>
							</tr>
							<tr>
								<td class='text'>姓名</td>
								<td class='input'><input name='applyName' type='text' class='input-text' size='40'><span class='info' id="name">*</span></td>
							</tr>
							<tr>
								<td class='text'>电话</td>
								<td class='input'><input name='applyPhone' type='text' class='input-text' size='40'><span id="phone" class='info'>*</span></td>
							</tr>
							<tr>
								<td class='text'>性别:</td>
								<td class='input'>
									<input name='applySex' type='radio' id='para18' value='男' checked='checked' />
									<label for='para18'>男</label> 
									<input name='applySex' type='radio' id='para28' value='女' />
									<label for='para28'>女</label> 
									<span class='info' id="sex">*</span><span></span></td>
							</tr>
							<tr>
							<tr>
								<td class='text'>身份证号码</td>
								<td class='input'><input name='applyCard' type='text' class='input-text' size='40'><span id="idCardNo" class='info'>*</span></td>
							</tr>
							<%-- <tr>
								<td class='text'>验证码</td>
								<td class='input'><input name='code' onKeyUp='pressCaptcha(this)' type='text' class='code'  size='6' maxlength='8' style='width:50px' />
								<img align='absbottom' src='img/code.jpg' onclick=this.src='' +Math.random()
										style='cursor: pointer;' title='看不清？点击更换验证码' /><span id="code" class="info"></span></td>
							</tr> --%>
								
							<tr>
								<td class='text'></td>
								<td class='submint'><input id="btnSubmit" type='submit' name='Submit' value='提交信息' class='submit button orange' /></td>
							</tr>
						</table>
					</form>

			</div>
			<div class="clear"></div>
		</div>

		<footer class="inner" >
			<div class="foot-nav">
				<a href="about.jsp" 0 title='关于我们'>关于我们</a><span>
					|</span><a href='feedback.jsp' title='客户留言'>客户留言</a><span>|
						<span><a href='booking.jsp' title='在线预约'>在线预约</a><span>|
						</span><a href='joinUs.jsp' title='人才招聘'>人才招聘</a><span>|
				<a href='${pageContext.request.contextPath }/selectNo' title='网站地图'>联系我们</a>
			</div>
			<div class="foot-text">
				<p>恒达汽修有限公司版权所有     2017-2018    备案号：渝ICP备13004606
				</p>
				<p>电话：020-5856-1762</p>
			</div>
		</footer>
				<script type="text/javascript" src="js/jquery-3.2.1.min.js" ></script>
		<script type="text/javascript">
			$(function(){
				$("#btnSubmit").click(function(){
					var name=$("input[name=applyName]").val();
					var phone=$("input[name=applyPhone]").val();
					var number=$("input[name=applyCard]").val();
					
					var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/; 
					if(name==""){
						$("#name").text("请输入姓名");
						return false; 
					}
					$("#name").text("");
					if(!myreg.test(phone)) 
					{ 
					   $("#phone").text("请输入有效的手机号码！");
					    return false; 
					}  $("#phone").text("");
					
					//判断身份证号码有效性
						//获取身份证号
					
					var flagIDCard =isCardNo(number);
					if(flagIDCard==false){
						$("#idCardNo").text("身份证输入不合法！");
						return false;
					}
					$("#idCardNo").text("");
					
					alert("应聘信息提交成功！");
					$("#frmAddCandidateInfo").submit();
					
				});
				
			});
	
	
	//正则表达式判断身份证是否合法
	function isCardNo(card)  
      {  
      	
      // 身份证号码为15位或者18位，15位时全为数字，18位前17位为数字，最后一位是校验位，可能为数字或字符X  
      var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;  
     	if(reg.test(card) === false)  
   			{  
       return  false;  
  		 }  
   
	}  
		</script>
		
		
		
	</body>

</html>